export interface User {
  id: number;
  username: string;
  role: string;
  createdAt: string;
  updatedAt: string;
}

export interface Category {
  id: number;
  name: string;
  code: string;
  createdAt: string;
  updatedAt: string;
}

export interface Knowledge {
  id: number;
  name: string;
  categoryId: number;
  categoryName?: string;
  createdAt: string;
  updatedAt: string;
}

export interface Question {
  id: number;
  content: string;
  type: number;
  difficulty: number;
  knowledgeId: number;
  knowledgeName?: string;
  createdAt: string;
  updatedAt: string;
}

export interface ListResponse<T> {
  items: T[];
  total: number;
}

export interface ListParams {
  page?: number;
  size?: number;
  keyword?: string;
  categoryId?: number; // 添加 categoryId 参数
}